package com.wanxs.mall.product.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wanxs.mall.common.page.PageData;
import com.wanxs.mall.common.service.CrudService;
import com.wanxs.mall.product.dto.CategoryBrandRelationDTO;
import com.wanxs.mall.product.entity.BrandEntity;
import com.wanxs.mall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author wanxs 130001934@qq.com
 * @since 1.0.0 2023-09-01
 */
public interface CategoryBrandRelationService extends CrudService<CategoryBrandRelationEntity, CategoryBrandRelationDTO> {

    PageData<CategoryBrandRelationEntity> queryCagelogPage(Map<String, Object> params ,QueryWrapper<CategoryBrandRelationEntity> queryWrapper);

    void updateBrandName(Long brandId, String name);

    void updateCategoryName(Long catId, String catName);

    List<BrandEntity> queryBrandListByCatId(Long catId);
}